from django.shortcuts import HttpResponse, reverse
from . import models


def test(request):
    print(request.GET)
    print(type(request.GET))
    params = request.GET
    params_copy = params.copy()
    print(id(params_copy))
    print(id(params))
    params._mutable = True
    params['fd'] = 4 # AttributeError: This QueryDict instance is immutable
    print(params)
    print(params.urlencode()) #
    return HttpResponse('test!')


def info(request):
    return HttpResponse('info!')


def content1(request):
    return HttpResponse('content1')


def content2(request):
    return HttpResponse('content2')